package com.harry.decoupling.defi.tool;

import java.util.Collection;
import java.util.Map;

/**
 * 数据交换转换器
 */
public interface DataExchange {

	<T> T parse(Object source, Class<T> clazz) throws Exception;

	Map<String, Object> parseMap(Object source) throws Exception;

	Collection<Object> parseCollection(Object source) throws Exception;

	String serialize(Object o) throws Exception;
}
